package cn.appsys.service.impl;

import cn.appsys.dao.devUserDao.DevUserMapper;
import cn.appsys.pojo.DevUser;
import cn.appsys.service.DevUserService;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("DevUserService")
public class DevUserServiceImpl implements DevUserService {
    private static final Logger LOGGER = Logger.getLogger(DevUserServiceImpl.class);
    @Resource
    private DevUserMapper devUserMapper;



    @Override
    public DevUser LoginFlag(String devCode, String devPassword) {
        DevUser devUser =new DevUser();
        String password=null;
        try {
            devUser = devUserMapper.findPWDbyUsername(devCode);

        }catch (Exception e) {
            LOGGER.error("UserServiceImpl.getAllUser 异常：" + e.getMessage());
            //return userList;
        }
      return devUser;

    }
}
